package org.paradise.pojo;

import java.io.Serializable;
import java.util.Objects;

public class Gift implements Serializable {
    private Integer id;
    private String name;
    private Integer integral;
    private Integer num;
    private Integer total;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Gift gift = (Gift) o;
        return Objects.equals(id, gift.id) &&
                Objects.equals(name, gift.name) &&
                Objects.equals(integral, gift.integral) &&
                Objects.equals(num, gift.num) &&
                Objects.equals(total, gift.total);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, integral, num, total);
    }
}
